const {
    invoke,
    query,
    enrollAdmin,
    registerUser
} = require('../tools/index.js');

async function Query() {
    console.log("-------------testQuery--------------")
    const data = {
        username: "user2",
        chaincodeId: "dealer",
        fcn: "query",
        args: ["1"],
        host: '106.12.220.29',
        org: '2'
    }
    await query(data, r => {
        console.log(r)
    }, msg => {
        console.log(msg)
    })
}

(async function () {
    await Query();
})()